home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / Word-Safari.swf / scripts / frame_12 / DoAction_2.as next >
Text File  |  2008-02-25  |  1KB  |  65 lines

  1. function addToslot(item)
  2. {
  3.    item._x = eval("itemSlot" + currentslotnum)._x;
  4.    item._y = eval("itemSlot" + currentslotnum)._y;
  5.    tellTarget("itemSlot" + currentslotnum)
  6.    {
  7.       gotoAndStop(2);
  8.    }
  9.    currentslotnum++;
  10. }
  11. function BalloonMistake()
  12. {
  13.    tellTarget("/blueboy2/hero/BALL" + balloonnumber)
  14.    {
  15.       play();
  16.    }
  17.    balloonnumber++;
  18. }
  19. function addToerror()
  20. {
  21.    var _loc1_ = _root;
  22.    if(_loc1_.VAREX != b1)
  23.    {
  24.       if(_loc1_.VAREX != b2)
  25.       {
  26.          if(_loc1_.VAREX != b3)
  27.          {
  28.             if(_loc1_.VAREX != b4)
  29.             {
  30.                if(_loc1_.VAREX != b5)
  31.                {
  32.                   if(_loc1_.VAREX != b6)
  33.                   {
  34.                      if(_loc1_.VAREX != b7)
  35.                      {
  36.                         if(_loc1_.VAREX != b8)
  37.                         {
  38.                            error.nextFrame();
  39.                            Whoops.start();
  40.                         }
  41.                      }
  42.                   }
  43.                }
  44.             }
  45.          }
  46.       }
  47.    }
  48.    x = 1;
  49.    while(x < 9)
  50.    {
  51.       if(_loc1_.VAREX == _loc1_["b" + x] and _loc1_["L" + x] != 1)
  52.       {
  53.          Zinc.start();
  54.       }
  55.       x++;
  56.    }
  57. }
  58. _root.loaded = false;
  59. currentslotnum = 1;
  60. hide = false;
  61. balloonnumber = 1;
  62. _root.death = false;
  63. _root.jump = 10;
  64. stop();
  65.